import request from '@/utils/request'

// 查询推广宝贝数据日报列表
export function parseDate(query) {
  return request({
    url: '/marketing/BiPromotionAccountDwd/parseDate',
    method: 'get',
    params: query
  })
}
// 查询推广宝贝数据日报列表
export function selectByConditionList(query) {
  return request({
    url: '/marketing/BiPromotionAccountDwd/selectByConditionList',
    method: 'get',
    params: query
  })
}
// 查询推广宝贝数据日报列表
export function selectProductStatistics(query) {
  return request({
    url: '/marketing/BiPromotionAccountDwd/selectProductStatistics',
    method: 'get',
    params: query
  })
}
// 查询推广宝贝数据日报列表
export function listBiPromotionGoodsDwd(query) {
  return request({
    url: '/marketing/BiPromotionGoodsDwd/list',
    method: 'get',
    params: query
  })
}

// 查询推广宝贝数据日报详细
export function getBiPromotionGoodsDwd(id) {
  return request({
    url: '/marketing/BiPromotionGoodsDwd/' + id,
    method: 'get'
  })
}

// 新增推广宝贝数据日报
export function addBiPromotionGoodsDwd(data) {
  return request({
    url: '/marketing/BiPromotionGoodsDwd',
    method: 'post',
    data: data
  })
}

// 修改推广宝贝数据日报
export function updateBiPromotionGoodsDwd(data) {
  return request({
    url: '/marketing/BiPromotionGoodsDwd',
    method: 'put',
    data: data
  })
}

// 删除推广宝贝数据日报
export function delBiPromotionGoodsDwd(id) {
  return request({
    url: '/marketing/BiPromotionGoodsDwd/' + id,
    method: 'delete'
  })
}
